package cn.iocoder.yudao.module.promotion.controller.admin.points.vo.pointsactivity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 积分活动 Excel 导出 Request VO，参数和 PointsActivityPageReqVO 是一致的")
@Data
public class PointsActivityExportReqVO {

    @Schema(description = "活动名称", example = "李四")
    private String name;

    @Schema(description = "活动描述")
    private String des;

    @Schema(description = "商品 SPU ID", example = "12475")
    private Long spuId;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "活动状态：0开启 1关闭", example = "2")
    private Byte status;

    @Schema(description = "活动类型（取自数据字典）", example = "2")
    private Byte activityType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
